package com.ftf.tp.blog.application.assembler;

import com.ftf.tp.blog.application.dto.QuestionPageDTO;
import com.ftf.tp.blog.application.dto.TagDTO;
import com.ftf.tp.blog.application.vo.QuestionVO;
import com.ftf.tp.blog.domain.article.dos.QuestionPageDO;
import com.ftf.tp.blog.domain.configuration.dos.QuestionDO;
import com.ftf.tp.blog.domain.configuration.valobj.TagValue;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author tanghao
 * @date 2022/8/11
 */
@Mapper
public interface QuestionAssembler {

    QuestionAssembler INSTANCE = Mappers.getMapper(QuestionAssembler.class);

    List<TagValue> dtoToValue(List<TagDTO> tagDTOList);

    List<QuestionVO> doToVoList(List<QuestionDO> questionDOList);

    QuestionPageDO dtoToDO(QuestionPageDTO questionPageDTO);
}

